Shell Extension Context Menu Sample | CodeGuru

Shell Extension Context Menu Sample

Environment: VC5.0, Win95/98/NT An Explorer context menu is the menu that pops up when you right-click on a file or folder form within Explorer or My Computer or any other standard file browse dialog.  You see them for apps like WinZip, virus scanners, image viewers, etc.  But, there is surprisingly little documentation on them, and […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 21, 1999
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: VC5.0, Win95/98/NT

An Explorer context menu is the menu that pops up when you right-click on
a file or folder form within Explorer or My Computer or any other standard file
browse dialog.  You see them for apps like WinZip, virus scanners, image viewers,
etc.  But, there is surprisingly little documentation on them, and the examples
that are out there are mostly pretty poor.

I’ve taken the basic SHELLEX sample from the MSDN and filled in the missing
parts, added multi-threading and a progress dialog and packaged it for you to use
for your own applications.

The source package includes a lengthy readme file that explains the inner workings of the
code, how to add your own changes, how to debug it and the things you’ll need to
know if you want to distribute the final product.  Please read the notes on
running and debugging – shell extensions are not normal apps, you’ll need to
do some special setup steps before you can run or debug them.

A friendly warning:

If you’ve never seen a COM DLL before, this code may be confusing.  But trust me,
there are only a few sections that you will have to modify in order to add your own code.

Support:

I don’t know anything about the other kinds of extensions that are possible : property pages,
namespace extensions, etc.  Don’t ask.

Have fun!

This is distributed as a VC5 project.  I don’t know if it will work on VC4 or VC6.

Downloads

Download source – 33 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.